<?php
namespace App\Http\Controllers\Admin;

use App\Logic\Layui\Service\BusinessLog;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class BusinessLogController extends Controller
{
    use CallController;

    private $app;
    
    public function __construct()
    {
        parent::__construct();
        $this->app = $this->factory->Loger(function ($app){
            return new BusinessLog($app);
        });
    }

    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    private function index(Request $request)
    {
        if($request->ajax()){

            return $this->app->lists();
        }else{

            return view('Admin.BusinessLog.index');
        }
    }

}
